<%@page import="com.ccb.lms.dto.ReaderBorrowHistoryDto"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/readerBorrowHistory.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.js" type="text/javascript"></script>
<title>BorrowHistory</title>
</head>
<body style="background-color=transparent">
<div id="container">
<div id="iframe1">
    <div id="title">
        <div id="left"> 
        <!--img src="img/main/ifleft.gif" height="8" style="float:left" /-->
		<img src="img/main/ifleft.gif" style="float:left" />
        <span class="t1"><b>&nbsp;&nbsp;借阅历史</b></span></div>
        <!--left-->
      <div id="right">
           <!-- <div style="background:#b6ca9d;width:5px;height:5px;margin:0px;">--><!--</div>-->
      </div>
      <!--right-->
    </div><!--title-->
    <div id="table">
    <%
    	ArrayList<ReaderBorrowHistoryDto> rhs = (ArrayList<ReaderBorrowHistoryDto>)request.getAttribute("readerBorrowHistoryDtos");
    	if ( rhs.size() != 0){
    %>
      <s:form action="readerBorrowHistory" method="post">
    	<table class="table1" border="1"cellspacing="0" cellpadding="0">
    		<tr class="tr1">
    			<td height="27" class="t3">&nbsp;</td>
        		<td class="t3"><div align="center">条型号</div></td>
        		<td class="t3"><div align="center">题名</div></td>
        		<td class="t3"><div align="center"><span class="t3">作者</span></div></td>
        		<td class="t3"><div align="center"><span class="t3">借阅日期</span></div></td>
        		<td class="t3"><div align="center"><span class="t3">归还日期</span></div></td>
        		<td class="t3"><div align="center"><span class="t3">馆藏地</span></div></td>
    		</tr>
    		
    		<s:iterator value="readerBorrowHistoryDtos" id="readerBorrowHistoryDto" status="st"><!-- borrowBooks需要替换 -->
    		<tr class="tr2">
    			<td class="t4" align="center"><div align="center"><s:property value="#st.index+1"/></div></td>
    			<td class="t4" align="center"><div align="center"><s:property value="#readerBorrowHistoryDto.copyBarCode"/></div></td>
    			<td class="t4" align="center"><div align="center">
    			<s:url id="getBookbyNO" action="getBookbyNO" namespace="/book">
    					<s:param name="bookNO">
    						<s:property value="#readerBorrowHistoryDto.bookNO"/>
    					</s:param>
    					<s:param name="copyBarCode">
    						<s:property value="#readerBorrowHistoryDto.copyBarCode"/>
    					</s:param>
    				</s:url>
    				<s:a href="%{getBookbyNO}">
    			
    				<s:property value="#readerBorrowHistoryDto.bookName"/>
    			
    				</s:a>
    			</div></td>
    			<td class="t4" align="center"><div align="center"><s:property value="#readerBorrowHistoryDto.bookAuthor"/></div></td>
    			<td class="t4" align="center"><div align="center"><s:property value="#readerBorrowHistoryDto.borrowTime"/></div></td>
    			<td class="t4" align="center"><div align="center"><s:property value="#readerBorrowHistoryDto.borrowDeadline"/></div></td>
    			<td class="t4" align="center"><div align="center">北数图书馆</div></td>
    		</tr>
    		</s:iterator>
        	 
    	</table>

    </s:form>
    <%
    	} else {
    %>
    	<h2>没有借阅记录！</h2>
    <%
    	}
    %>
    </div>
</div>
</div>
</body>
</html>

